/*
 * @Author: zhangxin 411020991@qq.com
 * @Date: 2023-04-16 00:21:53
 * @LastEditors: zhangxin 411020991@qq.com
 * @LastEditTime: 2023-04-18 14:48:36
 * @FilePath: \antd-pro\myapp\src\pages\Home\index.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import {history}from '@umijs/max'
const index = () => {
    function pagename(){
        history.push('/stu')
    }
    function pagenames(){
        history.push('/tood')
    }
  return (
    <div>首页
        <button onClick={pagename}>页面跳转</button>
        <button onClick={pagenames}>页面跳转2</button>
    </div>
  )
}

export default index